//package com.yksj.healthtalk.ui;
//
//
//import android.content.Intent;
//import android.os.Bundle;
//import android.view.View;
//import android.view.View.OnClickListener;
//import android.widget.CheckBox;
//import android.widget.CompoundButton;
//import android.widget.CompoundButton.OnCheckedChangeListener;
//
//import com.yksj.healthtalk.comm.BaseFragmentActivity;
//import com.yksj.healthtalk.net.http.AsyncHttpResponseHandler;
//import com.yksj.healthtalk.net.http.HttpRestClient;
//import com.yksj.healthtalk.net.socket.SmartFoxClient;
//import com.yksj.healthtalk.ui.R;
//import com.yksj.healthtalk.ui.setting.SettingWebUIActivity;
//import com.yksj.healthtalk.utils.SystemUtils;
////首页用户协议
//public class SplashActivity extends BaseFragmentActivity implements OnCheckedChangeListener, OnClickListener {
//	
//	CheckBox mcBox;
//	CheckBox mEnterCheck;
//	
//	@Override
//	protected void onCreate(Bundle arg0) {
//		super.onCreate(arg0);
//		setContentView(R.layout.splash_layout);
//		mcBox=(CheckBox)findViewById(R.id.check_icon);
//		mEnterCheck=(CheckBox)findViewById(R.id.enter_check);
//		 findViewById(R.id.web_ui).setOnClickListener(this);
//		 mcBox.setOnCheckedChangeListener(this);
//		 mEnterCheck.setOnClickListener(this);
//	}
//	
//	
//	@Override
//	public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {
//		switch (buttonView.getId()) {
//		case R.id.check_icon:
//			mEnterCheck.setChecked(isChecked);
//			mEnterCheck.setEnabled(isChecked);
//			break;
//		}
//	}
//
//	@Override
//	public void onClick(View v) {
//		switch (v.getId()) {
//		case R.id.web_ui:
//			Intent intent=new Intent(this,SettingWebUIActivity.class);
//			intent.putExtra("title", "使用条款和隐私协议");
//			intent.putExtra("url",getURL());
//			startActivity(intent);
//			overridePendingTransition(R.anim.anim_enter,R.anim.anim_exit);
//			break;
//		case R.id.enter_check:
//			if(!mcBox.isChecked())return;
//			HttpRestClient.doHttpAgreeVierson(SystemUtils.getAppVersionName(this),SmartFoxClient.getLoginUserId(), new AsyncHttpResponseHandler());
//			intent = new Intent(this,MainTabActivity.class);
//			intent.putExtra("type",false);
//			intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
//			intent.addFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP);
//			startActivity(intent);
//			finish();
//			overridePendingTransition(R.anim.anim_enter, R.anim.anim_exit);
//			break;
//		}
//	}
//	
//	private String getURL(){
//		return HttpRestClient.getmHttpUrls().WEB_ROOT+
//		"/sms_web/UserAgreementServlet300?Type=queryAgreement&customerid="
//				+SmartFoxClient.getLoginUserId()+"" +
//						"&agreementType=Registered&system_version="+
//				SystemUtils.getAppVersionName(this);
//	}
//	
//}
